using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.Sales
{
    public interface ISaleOrderTypeAppService
    {
        Task<SaleOrderTypeDto> GetAsync(Guid id);
        Task<SaleOrderTypeDto> FindAsync(string filter);
        Task<SaleOrderTypeDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<SaleOrderTypeDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<SaleOrderTypeDto>> QueryAsync(FilterGroupRequestDto input);
        Task<SaleOrderTypeDto> CreateAsync(SaleOrderTypeCreateDto input);
        Task<SaleOrderTypeDto> UpdateAsync(Guid id, SaleOrderTypeUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}